home *** CD-ROM | disk | FTP | other *** search
/ Java Internet Programming Reference Guide / Java Internet Programming Reference Guide.iso / autorun / java.dir / 00133_cans.txt < prev    next >
Encoding:
Text File  |  1996-01-12  |  5.4 KB  |  962 lines

  1. setMinutes method
  2.  
  3.  
  4. Syntax
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. dateObj.setMinutes(minutes) 
  12.  
  13.  
  14.  
  15. where dateObj is a date object.
  16.  
  17.  
  18.  
  19.  
  20.  
  21. Description
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. Sets the minutes in the current time. The argument is an integer between 0 and 59.
  30.  
  31.  
  32.  
  33.  
  34.  
  35. Applies to
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. Date
  43.  
  44.  
  45.  
  46.  
  47.  
  48. Examples
  49.  
  50.  
  51.  
  52.  
  53.  
  54. theBigDay.setMinutes(45)
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. See also
  63.  
  64.  
  65.  
  66.  
  67. xxx To be supplied.
  68.  
  69.  
  70. ------------------------------------------------------------------------
  71.  
  72.  
  73.  
  74.  
  75.  
  76. setMonth method
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. Syntax
  86.  
  87.  
  88.  
  89.  
  90. dateObj.setMonth(month) 
  91.  
  92.  
  93.  
  94. where dateObj is a date object.
  95.  
  96.  
  97.  
  98.  
  99.  
  100. Description
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. Sets the month in the current date. The argument is an integer between 0 and 11.
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Applies to
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. Date
  122.  
  123.  
  124.  
  125.  
  126.  
  127. Examples
  128.  
  129.  
  130.  
  131.  
  132.  
  133. theBigDay.setMonth(6)
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141. See also
  142.  
  143.  
  144.  
  145.  
  146. xxx To be supplied.
  147.  
  148.  
  149. ------------------------------------------------------------------------
  150.  
  151.  
  152.  
  153.  
  154.  
  155. setSeconds method
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164. Syntax
  165.  
  166.  
  167.  
  168.  
  169. dateObj.setSeconds(seconds) 
  170.  
  171.  
  172.  
  173. where dateObj is a date object.
  174.  
  175.  
  176.  
  177.  
  178.  
  179. Description
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187. Sets the seconds in the current time. The argument is an integer between 0 and 59.
  188.  
  189.  
  190.  
  191.  
  192.  
  193. Applies to
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. Date
  201.  
  202.  
  203.  
  204.  
  205.  
  206. Examples
  207.  
  208.  
  209.  
  210.  
  211.  
  212. theBigDay.setSeconds(30)
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220. See also
  221.  
  222.  
  223.  
  224.  
  225. xxx To be supplied.
  226.  
  227.  
  228.  
  229. ------------------------------------------------------------------------
  230.  
  231.  
  232.  
  233.  
  234.  
  235. setTime method
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245. Syntax
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. dateObj.setTime(timevalue) 
  253.  
  254.  
  255.  
  256. where dateObj is a date object.
  257.  
  258.  
  259.  
  260.  
  261.  
  262. Description
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270. Sets the value of the date object.
  271. This argument is the number of milliseconds since the epoch 
  272. (1 January 1970 00:00:00)
  273. You can use this method to help assign a date and time to another date object.
  274.  
  275.  
  276.  
  277.  
  278.  
  279. Applies to
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286. Date
  287.  
  288.  
  289.  
  290.  
  291.  
  292. Examples
  293.  
  294.  
  295.  
  296.  
  297.  
  298. theBigDay = new Date("July 1, 1999")
  299. sameAsBigDay = new Date();
  300. sameAsBigDay.setTime(theBigDay.getTime())
  301.  
  302.  
  303.  
  304.  
  305.  
  306. ------------------------------------------------------------------------
  307.  
  308.  
  309.  
  310.  
  311.  
  312. setTimeout method
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319. Evaluates an expression after a specified number of milliseconds have elapsed.
  320.  
  321.  
  322.  
  323.  
  324.  
  325. Syntax
  326.  
  327.  
  328.  
  329.  
  330. timeoutID=setTimeout(expression, msec)
  331.  
  332.  
  333.  
  334. expression is a string expression.
  335.  
  336. msec is a numeric value or numeric string in millisecond units.
  337.  
  338. timeoutID is an identifier that is used only to cancel the evaluation with the clearTimeout method.
  339.  
  340.  
  341.  
  342.  
  343.  
  344. Description
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351. xxx Description to be supplied.
  352.  
  353. Applies to
  354.  
  355.  
  356. window
  357.  
  358.  
  359.  
  360.  
  361.  
  362. Examples
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369. xxx Examples to be supplied.
  370.  
  371.  
  372.  
  373.  
  374.  
  375. See also
  376.  
  377.  
  378.  
  379.  
  380. clearTimeout
  381.  
  382.  
  383. ------------------------------------------------------------------------
  384.  
  385.  
  386.  
  387.  
  388.  
  389. setYear method
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398. Syntax
  399.  
  400.  
  401.  
  402.  
  403. dateObj.setYear(year) 
  404.  
  405.  
  406.  
  407. where dateObj is a date object.
  408.  
  409.  
  410.  
  411.  
  412.  
  413. Description
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421. Sets the year in the current date. Takes as its argument an integer greater than 1900.
  422.  
  423.  
  424.  
  425.  
  426.  
  427. Applies to
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434. Date
  435.  
  436.  
  437.  
  438.  
  439.  
  440. Examples
  441.  
  442.  
  443.  
  444.  
  445.  
  446. theBigDay.setYear(96)
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454. See also
  455.  
  456.  
  457.  
  458.  
  459. xxx To be supplied.
  460.  
  461.  
  462. ------------------------------------------------------------------------
  463.  
  464.  
  465.  
  466.  
  467.  
  468. sin method
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476. Returns the sine of its argument. The argument is in radians.
  477.  
  478.  
  479.  
  480.  
  481.  
  482. Syntax
  483.  
  484.  
  485.  
  486.  
  487. sin(arg)
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494. Applies to
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501. Math
  502.  
  503.  
  504.  
  505.  
  506.  
  507. Examples
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514. xxx Examples to be supplied.
  515.  
  516.  
  517.  
  518.  
  519.  
  520. See also
  521.  
  522.  
  523.  
  524.  
  525. acos, asin, atan, cos, tan methods
  526.  
  527.  
  528. ------------------------------------------------------------------------
  529.  
  530.  
  531.  
  532.  
  533.  
  534. small method
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542. Causes the calling string object to be displayed in small font by surrounding it with HTML small font tags,  <SMALL>..<SMALL>
  543.  
  544.  
  545.  
  546.  
  547.  
  548. Syntax
  549.  
  550.  
  551.  
  552.  
  553. small()
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560. Description
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567. xxx Description to be supplied.
  568.  
  569.  
  570.  
  571.  
  572.  
  573. Applies to
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580. string
  581.  
  582.  
  583.  
  584.  
  585.  
  586. Examples
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593. xxx Examples to be supplied.
  594.  
  595.  
  596.  
  597.  
  598.  
  599. See also
  600.  
  601.  
  602.  
  603.  
  604. big, fontsize methods
  605.  
  606.  
  607. ------------------------------------------------------------------------
  608.  
  609.  
  610.  
  611.  
  612.  
  613. sqrt method
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621. Returns the square root of its argument.
  622.  
  623.  
  624.  
  625.  
  626.  
  627. Syntax
  628.  
  629.  
  630.  
  631.  
  632. sqrt(arg)
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639. Applies to
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646. Math
  647.  
  648.  
  649.  
  650.  
  651.  
  652. Examples
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659. xxx Examples to be supplied.
  660.  
  661.  
  662.  
  663.  
  664.  
  665. See also
  666.  
  667.  
  668.  
  669.  
  670. pow method
  671.  
  672.  
  673. ------------------------------------------------------------------------
  674.  
  675.  
  676.  
  677.  
  678.  
  679. strike method
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687. Causes the calling string object to be displayed as struck out text, by surrounding it with HTML strikeout tags,  <STRIKE>... <STRIKE>
  688.  
  689.  
  690.  
  691.  
  692.  
  693. Syntax
  694.  
  695.  
  696.  
  697.  
  698. strike()
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705. Description
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712. xxx Description to be supplied.
  713.  
  714.  
  715.  
  716.  
  717.  
  718. Applies to
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725. string
  726.  
  727.  
  728.  
  729.  
  730.  
  731. Examples
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738. xxx Examples to be supplied.
  739.  
  740.  
  741.  
  742.  
  743.  
  744. See also
  745.  
  746.  
  747.  
  748.  
  749. blink, bold, italics methods
  750.  
  751.  
  752. ------------------------------------------------------------------------
  753.  
  754.  
  755.  
  756.  
  757.  
  758. sub method
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766. Causes the calling string object to be displayed as a subscript by surrounding it with HTML subscript tags,  <SUB>... <SUB>
  767.  
  768.  
  769.  
  770.  
  771.  
  772. Syntax
  773.  
  774.  
  775.  
  776.  
  777. sub()
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784. Description
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791. xxx Description to be supplied.
  792.  
  793.  
  794.  
  795.  
  796.  
  797. Applies to
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804. string
  805.  
  806.  
  807.  
  808.  
  809.  
  810. Examples
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817. xxx Examples to be supplied.
  818.  
  819.  
  820.  
  821. sup method
  822.  
  823.  
  824. ------------------------------------------------------------------------
  825.  
  826.  
  827.  
  828.  
  829.  
  830. submit method
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838. Submits the form.
  839.  
  840.  
  841.  
  842.  
  843.  
  844. Syntax
  845.  
  846.  
  847.  
  848.  
  849. submit()
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856. Description
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. xxx Description to be supplied.
  864.  
  865.  
  866.  
  867.  
  868.  
  869. Applies to
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876. form
  877.  
  878.  
  879.  
  880.  
  881.  
  882. Examples
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889. xxx Examples to be supplied.
  890.  
  891.  
  892. ------------------------------------------------------------------------
  893.  
  894.  
  895.  
  896.  
  897.  
  898. substring method
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906. The substring method returns a subset of a string object. If a <b, then it returns the subset starting at character a and ending before character b, considering the first character of the string to be character zero (0). If a >b, then it returns the subset starting at character b and ending at character a. If a = b, then it returns the empty string.
  907.  
  908.  
  909.  
  910.  
  911.  
  912. Syntax
  913.  
  914.  
  915.  
  916.  
  917. substring(a, b)
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924. Description
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931. xxx Description to be supplied.
  932.  
  933.  
  934.  
  935.  
  936.  
  937. Applies to
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944. string
  945.  
  946.  
  947.  
  948.  
  949.  
  950. Examples
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957. If string x is "netscape"then x.substring(0,3) or x.substring(3,0) returns "net" and x.substring(4,7) or x.substring(7,4) returns "cap"
  958.  
  959.  
  960. ------------------------------------------------------------------------
  961.  
  962.